package com.elegant.code.domain;

import com.elegant.code.spi.dao.mybatis.AuditEntity;
import com.elegant.code.validator.IdCard;
import com.elegant.code.validator.OneOfEnum;
import lombok.Data;
import static com.elegant.code.domain.UserStatus.*;
@Data
public class User extends AuditEntity {
    Integer id;
    @IdCard
    String idCard;
    @OneOfEnum(value = UserStatus.class, field = "status")
    Integer status;
}
